#ifndef _DATACONVERTION_H__20120107_
#define _DATACONVERTION_H__20120107_

#include <sstream>

class DataConvertion
{
  public:
    template<typename outputType>
    static outputType stringToType(std::string inputString)
    {
        outputType output;
        std::stringstream sstrTemp(inputString);
        sstrTemp >> output;
        return output;
    }

    template<typename inputType>
    static std::string typeToString(inputType input)
    {
        std::stringstream sstrTemp;
        sstrTemp << input;
        return sstrTemp.str();
    }
};

#endif //_DATACONVERTION_H__20120107_
